$CertusJsonAjax.ajax("queryFileWKTrace",{
    "processInstanceId": $CertusJsonAjax.getProInstanceId(),
    "stepInstanceId": $CertusJsonAjax.getStepInstanceId()
},function(res){
    $$scope.processCCBXTrace = res.data;
})

$CertusJsonAjax.ajax("fileInfo",{"processInstanceId": $CertusJsonAjax.getProInstanceId(),
    "stepInstanceId": $CertusJsonAjax.getStepInstanceId()},function(res){
    $$scope.fileWkEn = res.data;
    $$scope.fileWkEn.processInstanceId = $CertusJsonAjax.getProInstanceId();
    $$scope.fileWkEn.stepInstanceId = $CertusJsonAjax.getStepInstanceId();
})
//同意 权限
$$scope.fileDenied = function(){

    $CertusJsonAjax.ajax("deniedApplyDownload",$$scope.fileWkEn,function(res){
        if(res.data == "success"){
            window.history.back();
        }
    })
}

$$scope.filePromise = function(a){
    if($$scope.fileWkEn.originReason == "start" && $$scope.fileWkEn.classFictionCode == "secret"){
        $CertusJsonAjax.ajax("approvalApplyDownload",$$scope.fileWkEn,function(){
            window.history.back();
        })
    }else{
        $CertusJsonAjax.ajax("promiseApplyDownload",$$scope.fileWkEn,function(){
            window.history.back();
        })
    }
}